import request from '@/utils/request'

// 查询字典房屋优势列表
export function listADictAdvantage(query) {
  return request({
    url: '/system/aDictAdvantage/list',
    method: 'get',
    params: query
  })
}

// 查询字典房屋优势详细
export function getADictAdvantage(id) {
  return request({
    url: '/system/aDictAdvantage/' + id,
    method: 'get'
  })
}

// 新增字典房屋优势
export function addADictAdvantage(data) {
  return request({
    url: '/system/aDictAdvantage',
    method: 'post',
    data: data
  })
}

// 修改字典房屋优势
export function updateADictAdvantage(data) {
  return request({
    url: '/system/aDictAdvantage',
    method: 'put',
    data: data
  })
}

// 删除字典房屋优势
export function delADictAdvantage(id) {
  return request({
    url: '/system/aDictAdvantage/' + id,
    method: 'delete'
  })
}

// 逻辑删除字典房屋优势
export function logicDelADictAdvantage(id) {
  return request({
    url: '/system/aDictAdvantage/logicDel/' + id,
    method: 'delete'
  })
}

export function listADictAdvantageLable() {
  return request({
    url: '/system/aDictAdvantage/listLable',
    method: 'get'
  })
}
